// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import '../public/stylesheet/index.less'
import Vue from 'vue'
import VueRouter from 'vue-router'
import VueResource from 'vue-resource'
import App from './App'
// 获得商品组件
import goods from 'components/goods/goods'
//获得评论组件
import rating from 'components/rating/rating'
// 获得商家组件
import seller from 'components/seller/seller'
Vue.use(VueRouter)
Vue.use(VueResource)
/* eslint-disable no-new */
const routes = [
  {
    path: '/goods',
    component: goods
  }, {
    path: '/rating',
    component: rating
  }, {
    path: '/seller',
    component: seller
  }];

const router = new VueRouter({
  linkActiveClass: 'active',
  routes
});

new Vue({
  el: '#app',
  router,
  render: h => h(App)
})

router.push('/goods')
